<?php
namespace app\common\component\seed;

use app\common\model\SeedFirstLog as SeedFirstLogModel;

class SeedFirstLogService {
	public function create($data) {
		$seedFirstLogModel = SeedFirstLogModel::create($data);
		
		if($seedFirstLogModel) {
			return [
				'code' => 0,
				'data' => ['seed_first_log' => $seedFirstLogModel]
			];
		}

		return [
			'code' => -1,
			'message' => '创建失败,seed_first_log'
		];
	}
}